const Layout = () => import("../views/Layout");
const Dashboard = () => import("../views/Home/Dashboard");
const Banner = () => import("../views/Home/Banner");

const homeRouter = {
  path: "/home",
  component: Layout,
  redirect: "/home/dashboard",
  // name: "layout",
  meta: {
    title: "home", //zh.json->route的属性名
    icon: "BankOutlined",
  },
  children: [
    {
      path: "dashboard",
      component: Dashboard,
      name: "dashboard",
      meta: {
        title: "dashboard",
        icon: "GroupOutlined",
      },
    },
    {
      path: "banner",
      component: Banner,
      name: "banner",
      meta: {
        title: "banner",
        icon: "LoadingOutlined",
      },
    },
  ],
};
export default homeRouter;
